<html>
<head>
	<script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
	<script>
		$(function(){
			var items = [];
			var len = 0;
			var json_file = "http://manh.tienganh123.com/file/baihoc/listening/luyen-nghe-tieng-anh-co-ban/luyen-tap/4-part2/words.php?jsoncallback=?";
			$.getJSON(json_file, function(data) {
		    	//len = data.bai.length;
		    	console.log("data.bai.length:" + data.bai.length);
		        for (var i=0;i<data.bai.length;i++)
		        {
		    		len++; // Lay so luong cac cau hoi
		            items.push(data.bai[i]); // Nap du lieu cac cau hoi vao mang items
		            //console.log("a" + data.bai[i].column_a);
		            //console.log("b" + data.bai[i].column_b);
		        }
		        
		        console.log("items: " + items[0].column_a);
		    })
		    .done(function(){  // Load du lieu thanh con
		        console.log("success");
		        //khoi tao ban dau
		        //game.load_img(items[0].img);
		        //game.load_audio(items[0].sound);
		        //game.assign_current_word(items[q].question);
		    })
		    .fail(function(){ console.log("error");}) // Neu load du lieu that bai
		    .always(function(){ console.log("complete");});
		});
	</script>
</head>
<body>

</body>
</html>